package com.jydd.kotlinpractice

import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.layout_test.*

class MainActivity : AppCompatActivity() {
    var  i = 0
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.layout_test)
        btnChangeContent.setOnClickListener {
            Log.i("liaoming", i++.toString())
            tvContent.text = "liaoming$i"
        }
    }
}
